package Actions;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import model.StudentModel;

import org.apache.struts.action.*;

import db.DbException;
import forms.ReviewerFormInsert;

public class InsertReviewerAction extends Action
{
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws DbException {

		// Cast the form
		ReviewerFormInsert iForm = (ReviewerFormInsert) form;
		
		// Insert the student
		StudentModel.insertReviewer(iForm);

		return mapping.findForward("insertSuccess");
	}
}
